# makefile util/lib

CC      = cc
#CFLAGS	= -O1 -ansi -fullwarn -DUNIX_CC 
CFLAGS	= -O1 -ansi -DUNIX_CC 
G_HEADERS = Compiler.h General.h

# Header files

.SUFFIXES: .h

.c.h:
	genh $(*F)

# Main target: complete rebuild

all:	    *.o
clean:
	-\rm *.o
	
# Object files

Functs.o:	Functs.c Functs.h $(G_HEADERS)
	$(CC) -c Functs.c $(CFLAGS)

MenuFuncts.o:	MenuFuncts.c MenuTypes.h MenuFuncts.h Functs.h $(G_HEADERS)
	$(CC) -c MenuFuncts.c $(CFLAGS) 

Binom.o:	Binom.c Binom.h $(G_HEADERS)
	$(CC) -c Binom.c $(CFLAGS) 

MultiPlot.o:	MultiPlot.c MultiPlot.h MultiPlotTypes.h Functs.h $(G_HEADERS)
	$(CC) -c MultiPlot.c $(CFLAGS) 

Printgraph.o:    Printgraph.c Printgraph.h PrintgraphTypes.h $(G_HEADERS)
	$(CC) -c Printgraph.c $(CFLAGS) 

Randomize_ansi.o:    Randomize_ansi.c Randomize_ansi.h
	$(CC) -c Randomize_ansi.c $(CFLAGS) 

Glist.o:    Glist.c Glist.h GlistTypes.h $(G_HEADERS)
	$(CC) -c Glist.c $(CFLAGS)

SLlist.o:   SLlist.c SLlist.h SLlistTypes.h $(G_HEADERS)
	$(CC) -c SLlist.c $(CFLAGS)
